@model CacheViewModel

@inject OrchardCore.Modules.ILocalClock LocalClock
@* 这里是以多种方式缓存的不同 DateTime 值，第一行还有当前未缓存的日期时间，以便查看差异。 *@

<p>@T["Current date (not cached): {0}", (await LocalClock.LocalNowAsync).DateTime]</p>
<p>@T["Memory cached date: {0}", Model.MemoryCachedDateTime]</p>
<p>@T["Dynamic cached date with 30 seconds expiry: {0}", Model.DynamicCachedDateTimeWith30SecondsExpiry]</p>
<p>@T["Tagged dynamic cached date varied by routes: {0}", Model.DynamicCachedDateTimeVariedByRoutes]</p>

@* 要测试特定于路由的缓存，请访问 /Ruitu.Edu.TrainingDemo/Cache/DifferentRoute URL。 *@

@* 下一站：Controllers/CacheController.cs 并找到 InvalidateDateTimeCache 操作。 *@
